package org.darkforest.common.services;

import org.darkforest.model.Adv;
import org.darkforest.model.AdvBean;

import java.util.List;

/**
 * Created by huayunsky on 10/31/2015.
 */
public interface AdvSerivce {

    int deleteByPrimaryKey(Integer advId);

    int insert(Adv record);

    int insertSelective(Adv record);

    Adv selectByPrimaryKey(Integer advId);

    int updateByPrimaryKeySelective(Adv record);

    int updateByPrimaryKey(Adv record);

    List selectByCondition(AdvBean advBean);

    public List<Adv> getRedisAdvList(String key);

    public void deleteRedisAdvList(String key);

    public List<Adv> getRedisAdvListForPC(Integer classId);
}
